using System.Collections.Specialized;
using App_Code.Controls;

namespace widgets.AlexaSiteStats
{
    public partial class WidgetsAlexaSiteStatsWidget : WidgetBase
    {
        public override string Name
        {
            get { return "AlexaSiteStats"; }
        }

        public override bool IsEditable
        {
            get { return true; }
        }

        public override void LoadWidget()
        {
        }

        public string siteinfo
        {
            get
            {
                string site = "http://www.alexa.com/siteinfo/{0}";
                StringDictionary sd = GetSettings();
                return string.Format(site, sd["websiteURL"]);
            }
        }
        public string AlexScript
        {
            get
            {
                string site = "http://xslt.alexa.com/site_stats/js/s/{0}?url={1}";
                StringDictionary sd = GetSettings();
                return string.Format(site,sd["Size"], sd["websiteURL"]);
            }
        }
    }
}
